//
//  Book.m
//  03_wok
//
//  Created by dllo on 16/7/6.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "Book.h"

@implementation Book

- (instancetype)initWithBookName:(NSString *)bookName price:(NSInteger)price{
    self = [super init];
    if (self) {
        _bookName = bookName;
        _price = price;
    }
    return self;
}

+ (instancetype)bookWithBookName:(NSString *)bookName price:(NSInteger)price{
    return [[Book alloc] initWithBookName:bookName price:price];
}



@end
